﻿using Hotel.DAL;
using Hotel.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.BLL
{
    public class ZuoBLL
    {
        public ZuoBLL(ZuoDAL zuoDAL)
        {
            ZuoDAL = zuoDAL;
        }
        public ZuoDAL ZuoDAL { get; }
        public int AddZuo(Zuo zuo)
        {
            try
            {
                return ZuoDAL.AddZuo(zuo);
            }
            catch (Exception)
            {

                throw;
            }
          
        }
        public dynamic Show()
        {
            try
            {
                return ZuoDAL.Show();
            }
            catch (Exception)
            {

                throw;
            }

        }
    }
}
